<?php

App::uses('AppModel', 'Model');

class Order extends AppModel {
    public $useTable='orders';
    /**
     * List of behaviors
     *
     * @var array
     */

    public $hasMany=array(
        'Item'=>array('className'=>'Node.Item',
                        'foreignKey'=>'order_id',
                        'dependent'=>true)
    );
    public $belongsTo=array(
        'User'=>array('className'=>'User.User',
                    'foreignKey'=>'user_id',
                    'dependent'=>true)
    );
}
?>